package nr.co.mhgames.polyanim.interpolation;

/**
 * Interpolator interface for the animations. Implement this to provide custom
 * interpolators.
 * 
 * @author Mika Halttunen
 * @see {@link LinearInterpolator}, {@link PowerCurveInterpolator},
 *      {@link SmoothStepInterpolator}
 */
public interface Interpolator {
	/**
	 * Interpolate a value between 0.0f - 1.0f based on the key frame position
	 * and the key frame length.
	 * 
	 * @param pos
	 *            Position
	 * @param maxPos
	 *            Maximal position
	 * @return Interpolated value between 0.0f - 1.0f
	 */
	public float interpolate(float pos, float maxPos);


	public void parseFrom(String params);
}
